package com.access.boot.autoconfigure.apisdk.aop;

/**
 * @author Yangzhen
 * @date 2022/6/2 16:45
 * @since 1.0.0
 */
public class DefaultPointcutAdvisor implements PointcutAdvisor {

    private Pointcut pointcut;

    private Advice advice;

    public DefaultPointcutAdvisor() {
    }

    public DefaultPointcutAdvisor(Pointcut pointcut, Advice advice) {
        this.pointcut = pointcut;
        this.advice = advice;
    }

    @Override
    public Advice getAdvice() {
        return advice;
    }

    @Override
    public Pointcut getPointcut() {
        return pointcut;
    }
}
